﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Program
    {
        static void Main(string[] args)
        {
            ////有参
            //emp empyee = new emp(1,"余华","男","写作部");
            //empyee.dy();

            ////;无参
            //emp empyee1 = new emp();
            //empyee1.Id = 2;
            //empyee1.Name = "杨洋";
            //empyee1.Sex = "男";
            //empyee1.Departinfo = "明星部";

            Console.WriteLine("欢迎来到默默宠物店，请问你要寄养什么动物呢：1、燕子；2、猫；3、老虎；4、老鹰");
            int key = int.Parse(Console.ReadLine());
            Animal a;
            switch (key)
            {
                case 1:
                    a = new Swallow();
                    break;
                case 2:
                    a = new Cat();
                    break;
                case 3:
                    a = new Tiger();
                    break;
                case 4:
                    a = new Eagle();
                    break;
                default:
                    Console.WriteLine("请不要乱选哦！");
                    a = new Tiger();
                    break;
            }

            PetStore ps = new PetStore();
            ps.ConsignAnimal(a);
        }




    }
}
}
